/**
 * @author guojiteng
 */
import request from '@/utils/request'

/**
 * 获取列表
 */
export function fetchList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/queryPage',
    method: 'POST',
    data
  })
}
/**
 * 删除
 */
export function deleteSubject(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/deleteByIds',
    method: 'POST',
    data
  })
}
/**
 * 获取分类
 */
export function getClassifyTree(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/getClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 编辑
 */
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/update',
    method: 'POST',
    data
  })
}
/**
 * 获取详情
 */
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/subject/get',
    method: 'POST',
    data
  })
}
/**
 * 批量删除
 */
export function batchDelet(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/deleteByIds',
    method: 'POST',
    data
  })
}
/**
 * 批量发布
 */
export function batchPublish(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/subject/updateBatch',
    method: 'POST',
    data
  })
}

/**
 * 修改状态
 */
export function modifyState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 设置默认
 */
export function waterDefault(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/watermarkTemplate/isDefault',
    method: 'POST',
    data
  })
}
